package cn.livingCloud.dto;

import cn.livingCloud.entity.core.PushGroup;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by DingJie on 2016/6/21.
 */
public class PushGroupListDto extends Page<PushGroupDto> {
    private String name;
    private String reportRuleUuid;
    private List<ReportRuleDto> allReportRuleDto = new ArrayList<>();

    public PushGroupListDto() {
    }

    @Override
    public void addAllList(List items) {
        for (Object item : items) {
            list.add(new PushGroupDto((PushGroup) item));
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReportRuleUuid() {
        return reportRuleUuid;
    }

    public void setReportRuleUuid(String reportRuleUuid) {
        this.reportRuleUuid = reportRuleUuid;
    }

    public List<ReportRuleDto> getAllReportRuleDto() {
        return allReportRuleDto;
    }

    public void setAllReportRuleDto(List<ReportRuleDto> allReportRuleDto) {
        this.allReportRuleDto = allReportRuleDto;
    }
}
